package cn.ywang;

import java.util.Scanner;

/**
 * Hello world!
 */
public class ClientApp {
	public static void main(String[] args) throws InterruptedException {
		new Thread(new Runnable() {
			@Override
			public void run() {
				Scanner scanner = new Scanner(System.in);
				Client client = new Client("客户A");
				while (true) {
					String content = scanner.next();
					client.send(content);
				}
			}
		}).start();

		Thread.sleep(1000);
	}
}
